package com.atguigu.scala.chapter_06_practice

object Scala_02 {
  def main(args: Array[String]): Unit = {

    def test(a:Int,b:Int,c:(Int,Int)=>Int):Int={
      return c(a,b)
    }
    println("输出结果是："+test(10,20,(x,y)=>{x*y}))
    println("输出结果是："+test(10,20,(x,y)=>{x+y}))
  }

}
